-- GENERATED SPELL FOR [Drakkari Snake Handler] --


function spell0_28034(pUnit, Event) --@Blood of Sseratus,Self--
pUnit:FullCastSpellOnTarget(54482,pUnit)
pUnit:RegisterEvent('Sorts_28034', 651, 1)
end

function spell1_28034(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28034', 635, 1)
end

function spell2_28034(pUnit, Event) --@Summon Drakkari Snake,Self--
pUnit:FullCastSpellOnTarget(54484,pUnit)
pUnit:RegisterEvent('Sorts_28034', 10281, 1)
end

function Sorts_28034(pUnit, Event)
local choix_sorts_28034 = math.random(0, 2)
if choix_sorts_28034 == 0 then
pUnit:RegisterEvent('spell0_28034', 1, 1)
end
if choix_sorts_28034 == 1 then
pUnit:RegisterEvent('spell1_28034', 1, 1)
end
if choix_sorts_28034 == 2 then
pUnit:RegisterEvent('spell2_28034', 1, 1)
end
end

function mob28034_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28034', math.random(1500, 3000), 1)
end

function mob28034_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28034_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28034_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28034, 1, 'mob28034_Action')
RegisterUnitEvent(28034, 2, 'mob28034_Leave')
RegisterUnitEvent(28034, 3, 'mob28034_Kill')
RegisterUnitEvent(28034, 4, 'mob28034_Die')
